var express = require('express');
var router = express.Router();

const {
    addTenants
} = require('../service/tenantsService');
/* GET home page. */
// 添加租客信息
router.post('/addTenants', async function (req, res, next) {
    console.log('成功进入添加租客位信息第一层', req.body)
    const result = await addTenants(req.body);
    console.log('第一层添加租客结果', result)
    res.send(result);
});

module.exports = router;